<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
    
<%@ page import="java.util.List" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>

<%@ page import="com.microstream.dao.* " %>
<%@ page import="com.microstream.lift.guestbook.PMF" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link type="text/css" rel="stylesheet" href="Lift.css">

<title>User List</title>
</head>
<body>

用户列表


<%
    PersistenceManager pm = PMF.get().getPersistenceManager();
    String query = "select from " + MsUser.class.getName();
    List<MsUser> users = (List<MsUser>) pm.newQuery(query).execute();
    out.println(users.size());
    out.println("<br>"); 
    
    for (MsUser u : users) {
	    out.println(u.getUserName()); 
    	out.println("<br>");
    }

%>

</body>
</html>